package com.csair.platform.cit.service.controller;

import com.csair.invoice.common.base.vo.JsonResult;
import com.csair.platform.cit.facade.CitOverviewApi;
import com.csair.platform.cit.facade.model.CitOverviewVo;
import com.csair.platform.cit.facade.model.CitQueryParam;
import com.csair.platform.cit.service.biz.OverviewService;
import com.csair.platform.cit.service.core.CheckDataPermission;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "企业所得税信息总览")
@Slf4j
@RestController
public class CitOverViewController implements CitOverviewApi {

    @Autowired
    private OverviewService overviewService;


    @CheckDataPermission
    @Override
    public JsonResult<CitOverviewVo> selectCitOverView(@RequestBody CitQueryParam citQueryParam) {

        CitOverviewVo citOverviewVo = overviewService.selectCitOverview(citQueryParam);

        return JsonResult.success(citOverviewVo);
    }
}
